package one.stand.response.essay;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 公司文库
 * @author Administrator
 */
@Data
@ApiModel(value = "公司文章信息")
public class DynamicDetailResponse implements Serializable{

    @ApiModelProperty("动态id")
    private Integer dynamicId;

    @ApiModelProperty("公司id")
    private Integer companyId;

    @ApiModelProperty("标题/内容")
    private String title;

    @ApiModelProperty("类型 1:文章 2:动态 3:转载")
    private Integer type;

    @ApiModelProperty("图片")
    private String photos;

    @ApiModelProperty("详情")
    private String details;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    /**
     * 转载文章的来源公众号
     */
    private String author;

    /**
     * 转载文章的来源公众号
     */
    private String originAuthor;

    @ApiModelProperty("文章热文")
    private List<DynamicModelResponse> dynamicDetailResponses;

    @ApiModelProperty("文章商品")
    private List<CompanyGoodsResponse> companyGoodsResponses;

}
